package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 项目对象 jiajia_item
 *
 * @author knd
 * @date 2021-10-13
 */

public class JiajiaItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    private String name;

    /**
     * 项目照片
     */
    @Excel(name = "项目照片")
    private String photo;

    /**
     * 项目详情照片
     */
    @Excel(name = "项目详情照片")
    private String photoDes;

    /**
     * 原价
     */
    @Excel(name = "原价")
    private BigDecimal price;

    /**
     * 现价
     */
    @Excel(name = "现价")
    private BigDecimal disPrice;

    /**
     * 项目介绍
     */
    @Excel(name = "项目介绍")
    private String jieShao;

    /**
     * 禁忌说明
     */
    @Excel(name = "禁忌说明")
    private String jinJi;

    /**
     * 下单须知
     */
    @Excel(name = "下单须知")
    private String xuZhi;

    /**
     * 类型编码
     */
    private String typeCode;

    /**
     * 项目时长（分钟）
     */
    @Excel(name = "项目时长", readConverterExp = "钟=小时")
    private Integer timeSpan;

    /**
     * 项目描述
     */
    @Excel(name = "项目描述")
    private String itemDes;

    /**
     * 销量
     */
    @Excel(name = "销量")
    private Integer xiaoLiang;

    /**
     * 好评度
     */
    @Excel(name = "好评度")
    private Integer haoPing;

    /**
     * 社工分成比例
     */
    @Excel(name = "社工分成比例")
    private BigDecimal workerPercent;

    /**
     * 平台分成比例
     */
    @Excel(name = "平台分成比例")
    private BigDecimal pingPercent;

    /**
     * 添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm.ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /**
     * 是否显示 1显示 0隐藏
     */
    private Integer isShow;

    private Integer lowest;

    private Integer moreThan;

    //////////////不在数据库//////////////
    /**
     * 类型名称
     */
    private String typeName;

    public Integer getLowest() {
        return lowest;
    }

    public void setLowest(Integer lowest) {
        this.lowest = lowest;
    }

    public Integer getMoreThan() {
        return moreThan;
    }

    public void setMoreThan(Integer moreThan) {
        this.moreThan = moreThan;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public BigDecimal getWorkerPercent() {
        return workerPercent;
    }

    public void setWorkerPercent(BigDecimal workerPercent) {
        this.workerPercent = workerPercent;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhotoDes(String photoDes) {
        this.photoDes = photoDes;
    }

    public String getPhotoDes() {
        return photoDes;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setDisPrice(BigDecimal disPrice) {
        this.disPrice = disPrice;
    }

    public BigDecimal getDisPrice() {
        return disPrice;
    }

    public void setJieShao(String jieShao) {
        this.jieShao = jieShao;
    }

    public String getJieShao() {
        return jieShao;
    }

    public void setJinJi(String jinJi) {
        this.jinJi = jinJi;
    }

    public String getJinJi() {
        return jinJi;
    }

    public void setXuZhi(String xuZhi) {
        this.xuZhi = xuZhi;
    }

    public String getXuZhi() {
        return xuZhi;
    }

    public void setTimeSpan(Integer timeSpan) {
        this.timeSpan = timeSpan;
    }

    public Integer getTimeSpan() {
        return timeSpan;
    }

    public void setItemDes(String itemDes) {
        this.itemDes = itemDes;
    }

    public String getItemDes() {
        return itemDes;
    }

    public void setXiaoLiang(Integer xiaoLiang) {
        this.xiaoLiang = xiaoLiang;
    }

    public Integer getXiaoLiang() {
        return xiaoLiang;
    }

    public void setHaoPing(Integer haoPing) {
        this.haoPing = haoPing;
    }

    public Integer getHaoPing() {
        return haoPing;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Date getAddtime() {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("photo", getPhoto())
                .append("photoDes", getPhotoDes())
                .append("price", getPrice())
                .append("disPrice", getDisPrice())
                .append("jieShao", getJieShao())
                .append("jinJi", getJinJi())
                .append("xuZhi", getXuZhi())
                .append("timeSpan", getTimeSpan())
                .append("itemDes", getItemDes())
                .append("xiaoLiang", getXiaoLiang())
                .append("haoPing", getHaoPing())
                .append("addtime", getAddtime())
                .append("lowest", getLowest())
                .append("moreThan", getMoreThan())
                .toString();
    }

    public BigDecimal getPingPercent() {
        return pingPercent;
    }

    public void setPingPercent(BigDecimal pingPercent) {
        this.pingPercent = pingPercent;
    }
}
